Ext.define("wmf.view.keyword.query", {
    extend: "wmf.lib.FormPanel",
    alias: "widget.keywordQuery",
	anchor: '100% 100%',
    border: false,
    fieldDefaults: {
        labelWidth: 90
    },
	
    items: [{
        xtype: "textfield",
        name: "keyword", 
        fieldLabel: "输入关键字",
		allowBlank: false
    },{ 
        xtype: "hidden",
        value: "2",
        name: "RID"
    },{
		region: 'south', 
		xtype:'keywordQueryData',
		width: '100%',
		title:'查询结果',
		height:200,
		margins:'10 0 0 0'
		}],
	
	dockedItems: [{
		xtype: 'toolbar',
		dock: 'bottom',
		layout: {
				type: 'hbox',
				alian: 'center',
				flex: 1
		},
		
		defaults: {
				xtype: 'button'
		},
		items: [{
				xtype : 'tbfill'
		},{
				itemId: 'query',
				icon: 'resources/icons/find.png',
				formBind: true,
				text: "查询"
		},{
				itemId: 'cancel',
				icon : 'resources/icons/icon_revoke.png',
				text: translations.global.operation.cancel
		}]
	}]
});